package com.wing.system.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.system.model.entity.SystemEnterprise;
import com.wing.system.model.request.SystemEnterpriseForm;
import com.wing.system.model.response.SystemEnterpriseVO;

import java.util.List;
import java.util.Map;

/**
 * 入驻企业-Service
 *
 * @author
 */
public interface SystemEnterpriseService extends IService<SystemEnterprise> {

    /**
     * 添加
     *
     * @param systemEnterpriseForm
     * @return
     */
    int add(SystemEnterpriseForm systemEnterpriseForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<SystemEnterpriseVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<SystemEnterpriseVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    SystemEnterpriseVO get4appById(Long id);

    SystemEnterpriseVO get5appById(Long id);

    IPage<SystemEnterprise> selectPage(Page<SystemEnterprise> pg, QueryWrapper<SystemEnterprise> queryWrapper);
}
